package constants;

public final class Constant {
	// Account type
	public static final int ACCOUNT_TYPE_USER_SYSTEM = 1;
	public static final int ACCOUNT_TYPE_USER_ADMIN = 2;
	public static final int ACCOUNT_TYPE_USER_SUPPORT = 3;
	public static final int ACCOUNT_TYPE_ACCOUNT_ADMIN = 4;
	public static final int ACCOUNT_TYPE_ACCOUNT_SUPPORT = 5;
	public static final int ACCOUNT_TYPE_REPORT_SUPPORT = 6;

	// System Status
	public static final int STATUS_ID_NEW = 1;
	public static final int STATUS_ID_ACTIVE = 2;
	public static final int STATUS_ID_DISABLE = 3;
	public static final int STATUS_ID_PENDING = 4;
	public static final int STATUS_ID_COMPLETE = 5;
	public static final int STATUS_ID_REJECTS = 6;
	public static final int STATUS_ID_PREACTIVE = 7;

	// Type Action
	public static final String ACTION_REQUEST_CHANGEPASS = "Reset Password";
	public static final String ACTION_REQUEST_UPDATEINFO = "Update Info";
	public static final String ACTION_RESPONSE_DORESETPASS = "Process Request Reset Password";
	public static final String ACTION_RESPONSE_DOUPDATEINFO = "Update Info";
	public static final String ACTION_CREATE_NEWUSER = "Create New User";
	public static final String ACTION_APPROVE_NEWUSER = "Approve New User";
	public static final String ACTION_DISABLE_USER = "Disable User";
	public static final String ACTION_ACTIVE_USER = "Active User";
	public static final String ACTION_REJECT_NEWUSER = "Reject New User";
	public static final String ACTION_UPDATE_PASSWORD = "Update Password";
	public static final String ACTION_LOGIN = "Login";
	public static final String ACTION_LOGOUT = "Logout";

	// Role
	public static final String ROLE_ADMIN = "admin";
	public static final String ROLE_USER = "user";

	// Format
	public static final String SIMPLE_DATE_FORMAT = "yy-MM-dd HH:mm:ss";

	// Password Pattern
	public static final String PASSWORD_PATTERN = "((?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%]).{6,20})";

	// Error - Message
	// Account
	public static final String ACCOUNT_REQUIRE = "What's your username?";
	public static final String ACCOUNT_FORMAT = "Username must be longer than 7 characters!";
	public static final String ACCOUNT_NOT_EXISTING = "The account you entered does not belong to any account!"
			+ " Make sure that it is typed correctly";
	public static final String ACCOUNT_EXISTING = "The account you entered is already exist!"
			+ " please rewrite another loginId ";
	public static final String FIRST_LOGIN = "You must change your password at the first login before accessing to CSC System!";

	// Password
	public static final String PASSWORD_REQUIRE = "What's your password?";
	public static final String PASSWORD_FORMAT = "Password must be longer than 7 characters and containt a combination of upper and lowercase letters "
			+ "and numeric and punctuation characters!";
	public static final String PASSWORD_INCORRECT = "The password you entered is incorrect. Please try again (make sure your caps lock is off)!";
	public static final String PASSWORD_CONFIRM_REQUIRE = "You must enter the same password twice in order to confirm it";
	public static final String PASSWORD_MATCHED = "Passwords do not match!";
	public static final String PASSWORD_REPEAT = "Choose a password you haven't previously used with this account!";
	public static final String CHANGEPASSWORD_FAIL = "Error! Server is maintaining, please come back later....";
	public static final String CHANGEPASSWORD_SUCCESS = "You may now use your new password to login!";

	// ID Card Number
	public static final String ID_CARD_REQUIRE = "ID Card Number will be used to identify you!";
	public static final String ID_CARD_FORMAT = "Invalid ID Card Number! ID Card must consist of an 9 - 12 digit code";

	// Phone
	public static final String PHONE_REQUIRE = "News and announcements will be sent to you via phone numbers and emails!";
	public static final String PHONE_FORMAT = "Invalid Number! Phone number may have from 9 to 11 digits!";

	// Address
	public static final String ADDRESS_REQUIRE = "We will contact you via your address in case of emergency";
	public static final String ADDRESS_FORMAT = "Invalid Address! Your address must contain house number and street name!";

	// Email
	public static final String EMAIL_REQUIRE = "Email wil be used to login and communicate with your colleagues";
	public static final String EMAIL_FORMAT = "Invalid Email! An email is made up of a local part, an @ symbol, then a domain part! Ex: james@csc.com";

	// New Account registration
	public static final String REGISTRATION_FAIL = "Error! Server is maintaining, please come back later....";
	public static final String REGISTRATION_SUCCESS = "Registration is completed! New account must be approved for the first login";

	// Approve - Reject - Activate - Disable
	public static final String APPROVE_FAIL = "Error! Server is maintaining, please come back later....";
	public static final String APPROVE_SUCCESS = "Account has been approved successful!";
	public static final String REJECT_FAIL = "Error! Server is maintaining, please come back later....";
	public static final String REJECT_SUCCESS = "Account has been rejected successful!";
	public static final String ACTIVATE_FAIL = "Error! Server is maintaining, please come back later....";
	public static final String ACTIVATE_SUCCESS = "Account has been activated successful!";
	public static final String DISABLE_FAIL = "Error! Server is maintaining, please come back later....";
	public static final String DISABLE_SUCCESS = "Account has been disable successful!";

}
